package com.chzu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName SignSubmission
 * @Description 活动签到以及提交感想的实体类
 * @Date 2022/02/13 17:59
 */
@Data
public class SignSubmission  implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("微信用户唯一标识")
    private String openId;

    @ApiModelProperty("活动id")
    private String activityId;

    @ApiModelProperty("1为已签到0为未签到")
    private Boolean signIn;

    @ApiModelProperty("活动感想")
    private String articleFeelings;

    @ApiModelProperty("是否启用")
    @TableLogic(value = "1", delval = "0")
    private boolean status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
